package com.etooling.framework.entity;


import com.etooling.framework.svo.AbstractEntity;

import javax.persistence.*;

/**
 * 企业信息管理
 */
@Entity
@Table(name = "t_employee_auth", schema = "framework")
public class EmployeeAuth extends AbstractEntity {
    Employee employee;
    PlatformAuth platformAuth;
    String status;
    String createTime;

    String mobile;

    @ManyToOne(targetEntity = Employee.class, fetch = FetchType.EAGER)
    @JoinColumn(name = "employee_id")
    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    @ManyToOne(targetEntity = PlatformAuth.class, fetch = FetchType.EAGER)
    @JoinColumn(name = "platform_auth_id")
    public PlatformAuth getPlatformAuth() {
        return platformAuth;
    }

    public void setPlatformAuth(PlatformAuth platformAuth) {
        this.platformAuth = platformAuth;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}